function render(name: string): HTMLElement {
    const element = document.createElement('div');
    element.innerHTML = ['Hello', name].join(' ');
    return element;
  }
  
  function mount(element: HTMLElement) {
    document.querySelector('#app').appendChild(element);
  }

  mount(render('World!'));
  